import 'dart:convert';

VersionBeanEntity versionBeanEntityFromJson(String str) => VersionBeanEntity.fromJson(json.decode(str));

String versionBeanEntityToJson(VersionBeanEntity data) => json.encode(data.toJson());

class VersionBeanEntity {
  int id;
  String version;
  String content;
  String fileUrl;

  VersionBeanEntity({
    required this.id,
    required this.version,
    required this.content,
    required this.fileUrl,
  });

  factory VersionBeanEntity.fromJson(Map<String, dynamic> json) => VersionBeanEntity(
    id: json["id"],
    version: json["version"],
    content: json["content"],
    fileUrl: json["file_url"],
  );

  Map<String, dynamic> toJson() => {
    "id": id,
    "version": version,
    "content": content,
    "file_url": fileUrl,
  };
}
